{% extends './user_base.html' %}

{% block userCenter %}
  <div id="user-course">
    {% for course in courses %}
      <div class="user-course common-border flex-row-between">
        <img src="{{course.avatar_url}}" width="150" height="100" />
        <div class="user-course-info">
          <p class="title24">{{course.course_name}}</p>
          <p>
            {% for teacher in course.teacher_set %}
              <span>{{teacher.name}}</span>
            {% endfor %}
          </p>
          <p class="title18">{{course.describe}}</p>
          <p class="title14">
            <span>理论课时：{{course.theo_hours}}</span>
            <span>实践课时：{{course.prac_hours}}</span>
            <span>学分：{{course.credit}}</span>
            <span>成绩：--</span>
          </p>
        </div> 
        <div>
          <span onclick=goUrl("{% url 'study:studying' pk=course.course_id %}") class="btn-long">继续学习</span>
        </div>
      </div>
    {% endfor %}
  </div>
{% endblock %}
{% block script %}
<script>

</script>
{% endblock %}